package hy.day2_read_confgi.beans;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.List;
import java.util.Map;
//@ConfigurationProperties("person")
//@PropertySource(value = "classpath:a.yml",factory = YmlFactory.class)
@Component
@Data
public class Person {
    @Value("${person.name}")
    String name;
    Integer age;
    boolean married;
    Date birth;
    Map<String,Object> maps;
    List<Object>lists;

    //@Autowired
    Dog dog;
}
